Document Solutions for Imaging
DS.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawImage Method / DrawImage(IImage,RectangleF,Nullable<RectangleF>,ImageAlign,RectangleF[],Single) Method
The image to draw.
The destination rectangle.
The clipping rectangle, or null for no clipping.
The image alignment.
OUT: The actual bounds of the drawn images (can be more than one if the image is tiled).
The image opacity.

In This Topic
    DrawImage(IImage,RectangleF,Nullable<RectangleF>,ImageAlign,RectangleF[],Single) Method
    In This Topic
    Draws an image using specified bounds, clipping and image alignment.

    In an output parameter, returns the array of actual image bounds.

    Syntax
    'Declaration
     
    Public Overloads Sub DrawImage( _
       ByVal image As IImage, _
       ByVal destBounds As System.Drawing.RectangleF, _
       ByVal clipBounds As System.Nullable(Of RectangleF), _
       ByVal align As ImageAlign, _
       ByRef imageBounds() As System.Drawing.RectangleF, _
       Optional ByVal opacity As System.Single _
    ) 
    public void DrawImage( 
       IImage image,
       System.Drawing.RectangleF destBounds,
       System.Nullable<RectangleF> clipBounds,
       ImageAlign align,
       out System.Drawing.RectangleF[] imageBounds,
       System.float opacity
    )

    Parameters

    image
    The image to draw.
    destBounds
    The destination rectangle.
    clipBounds
    The clipping rectangle, or null for no clipping.
    align
    The image alignment.
    imageBounds
    OUT: The actual bounds of the drawn images (can be more than one if the image is tiled).
    opacity
    The image opacity.
    See Also